<?php


namespace Xiaoguai\DesignPattern\DP002\Factory\Factory;


use Xiaoguai\DesignPattern\DP002\Factory\FactoryInterface;
use Xiaoguai\DesignPattern\DP002\Product\Computer\Desktop;
use Xiaoguai\DesignPattern\DP002\Product\ComputerInterface;
use Xiaoguai\DesignPattern\DP002\Product\Phone\Telephone;
use Xiaoguai\DesignPattern\DP002\Product\PhoneInterface;

class HuaweiFactory implements FactoryInterface
{

    public function createComputer(): ComputerInterface
    {
        return new Desktop();
    }

    public function createPhone(): PhoneInterface
    {
        return new Telephone();
    }
}